module.exports = {
	_before: function() { // 通用预处理器

	},

	// 成功链接
	_onWebsocketConnection: function(event) {
		console.log("onWebsocketConnection", event)
	},
	// 收到消息
	_onWebsocketMessage: function(event) {
		console.log("onWebsocketMessage", event)
	},
	// 断开时
	_onWebsocketDisConnection: function(event) {
		console.log("onWebsocketDisConnection", event)
	},

	// 测试用例
	async test(params) {
		return {
			errCode: 0,
			errMsg: '测试成功',
			data: params
		}
	}
}